<%--
  Created by IntelliJ IDEA.
  User: yangc
  Date: 2018/3/25
  Time: 14:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>PDF在线阅读</title>
    <script type="text/javascript" src="/lib/jQuery-File-Upload-master/jquery-1.8.3.min.js"></script>
    <SCRIPT LANGUAGE="javascript" FOR="HWPostil" EVENT="NotifyCtrlReady">
        //判断是否是IE，不是则跳转到xs预览接口
        AIP = document.getElementById("HWPostil");
        AIP.ShowToolBar = false;
        AIP.ShowDefMenu = 0;
        AIP.ShowScrollBarButton = 1;
    </SCRIPT>

    <script language="JavaScript">
        window.onresize = function(){
            location.reload();
        }
        //全局对象
        var AIP;
        var url = location.search;

        if(!isIE()){
            if(location.href.indexOf('&size=netdisk') > -1){
                window.location = "/netdisk/xs"+url;
            }else{
                window.location = "/xs"+url;
            }
        }

        function isIE() { //判断是都是IE浏览器
            if (!!window.ActiveXObject || "ActiveXObject" in window)
                return true;
            else
                return false;
        }

        $(function(){
            AIP = document.getElementById("HWPostil");
            if(location.href.indexOf('&size=netdisk') > -1){
                AIP.LoadFile("/netdisk/xs"+url);
            }else{
                AIP.LoadFile("/xs"+url);
            }

        })

    </script>
</head>

<body>
        <OBJECT id='HWPostil' align='middle' style='LEFT: 0px; WIDTH: 100%; TOP: 0px; HEIGHT: 100%'
        classid='clsid:FF1FE7A0-0578-4FEE-A34E-FB21B277D561'
        codebase='/lib/HWPostil/HWPostil.cab#version=3,1,4,4'>
            <PARAM NAME='_Version' VALUE='65536'>
            <PARAM NAME='_ExtentX' VALUE='17410'>
            <PARAM NAME='_ExtentY' VALUE='10874'>
            <PARAM NAME='_StockProps' VALUE='0'>
        </OBJECT>
</body>

</html>
